import {httpGet, httpGet1} from "../../../api/fetch";

export const loadUserRecommendDataFirst = () => {
    return httpGet1('/algorithm/loadUserCache').catch(console.log)
}

export const getUserRecommendData1 = (data) => {
    return httpGet('/algorithm/getUserCheckRecomend', data).catch(console.log)
}

export const getUserRecommendData2 = (data) => {
    return httpGet('/algorithm/getUserFreqRecomend', data).catch(console.log)
}

export const getUserRecommendData3 = (data) => {
    return httpGet('/algorithm/getUserWPRRecomend', data).catch(console.log)
}

export const loadItemRecommendDataFirst = () => {
    return httpGet1('/algorithm/loadItemCache').catch(console.log)
}

export const getItemRecommendData1 = (data) => {
    return httpGet('/algorithm/getItemkRecomend', data).catch(console.log)
}

export const getItemRecommendData2 = (data) => {
    return httpGet('/algorithm/getItemWPRRecomend', data).catch(console.log)
}

export const getUserAllRecommend = (data) => {
    return httpGet('/algorithm/getUserAllRecommend', data).catch(console.log)
}

export const getItemAllRecommend = (data) => {
    return httpGet1('/algorithm/getItemAllRecommend', data).catch(console.log)
}

export const getFinalRecommend = (data) => {
    return httpGet1('/algorithm/getFinalRecommend', data).catch(console.log)
}

